package com.ljx.thread.thread02;

/**
 * @author LJX
 * @Description: TODO
 * @Date: 2022/10/31 15:02
 * @Version 1.0
 */
public class TicketThreadTest {
	public static void main(String[] args) {
		// 模拟实现多线程取票
		TicketThread ticketThread = new TicketThread();
		Thread thread1 = new Thread(ticketThread,"A窗口");
		Thread thread2 = new Thread(ticketThread,"B窗口");
		Thread thread3 = new Thread(ticketThread,"C窗口");
		Thread thread4 = new Thread(ticketThread,"D窗口");
		thread1.start();
		thread2.start();
		thread3.start();
		thread4.start();


	}
}
